'use strict';

const Controller = require('../../core/common');

class BaseController extends Controller {
  async index() {
    const { ctx } = this;

    const { goodsId } = ctx.params;

    const params = { where: { goodsId } }

    const data = await ctx.model.Users.findAll(params);

    this.success(data);
  }
}

module.exports = BaseController;